Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wixc3/typescript

Package Overview
Dependencies
Maintainers
68
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wixc3/typescript

API

  • 11.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
27
decreased by-27.03%
Maintainers
68
Weekly downloads
 
Created
Source

npm version @wixc3/typescript on Github

Home > @wixc3/typescript

typescript package

TypeScript utilities

Functions

FunctionDescription
compileCode(code, fakePath)Compiles a code string to typescript AST
compileFile(sourceFilePath)Compiles a single file to typescript AST
findAllNodes(source, predicate)Finds all nodes satisfying the predicate
findNode(source, predicate)Finds the first node (via DFS) satisfying the predicate
findNodeAfterComment(node, comment)Finds all nodes following a comment
getLeadingComments(node)A more regorges ts.getLeadingCommentRanges: Finds mid - statement comments as well
getTsConfigCompilerOptions(tsConfigJsonPath)Calculates the effective tsconfig compiler options
isSame(a, b, ignore, reportDiff)Compared 2 code snippet (or ASTs)
match(code, pattern)

Finds a node matching the pattern. The pattern is a valid TS statement

It may include:

- //[ignore] to skip some of its structure,

- //[return] to return an inner node instead of the root

Type Aliases

Type AliasDescription
Comment_2

FAQs

Package last updated on 27 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc